package mp.study.demo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum SexEnum
{
    SEX_UNKNOW(0, "未知"),
    SEX_MAN(1, "男性"),
    SEX_WOMAN(2, "女性");

    SexEnum(int code, String desc)
    {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue
    private final int code;
    private final String desc;

    @Override
    public String toString()
    {
        return desc;
    }
}
